package com.cjy.graphics;

public class Cube extends GeometricObject {
    private double angularLength;
    public Cube(){}
    public Cube(double a){
        this.angularLength=a;
    }
    public double getAngularLength() {
        return angularLength;
    }

    public void setAngularLength(double angularLength) {
        this.angularLength = angularLength;
    }
    public double getArea(){
        return angularLength*angularLength;
    }
    public double getPerimeter(){
        return angularLength*4;
    }
}
